<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=, initial-scale=1.0">
    <title>Document</title>
    <style>
        a{
            color: black;
        }
        a:hover{
            color: brown;
        }
        a:active{
            color: chartreuse;
        }
          /* 本身为黑色 */
       input{
    color: black;
        }
        /* 当悬停在上面时是红色 */
    input:hover{
    color: brown;
        }   
        /* 按下不放手变为绿色 */
   input:active{
    color: chartreuse;
        }
        
        
    </style>
</head>
<body>

    <a href="#">不跳转</a>
    <br>
    <input type="button" value="按钮">
</body>
</html>